import request from '@/axios/request'

// 我的历史报告列表-h5
// export function myCompanyReportLists (data) {
//   return request({
//     url: '/companyReport/myCompanyReportLists',
//     method: 'get',
//     params:data,
//     
//   })
// }

// 发送验证码
export function sendCode (data) {
    return request({
      url: '/shop/users/send-code',
      method: 'post',
      data,
    })
}
// 密码登录
export function passLogin (data) {
    return request({
      url: '/shop/users/login',
      method: 'post',
      data
    })
}
// 验证码登录
export function smsLogin (data) {
    return request({
      url: '/shop/users/sms-login',
      method: 'post',
      data
    })
}
// 我的帐户信息
export function myInfo (data) {
    return request({
      url: '/shop/users/myinfo',
      method: 'post',
      data
    })
}
// 订单列表
export function orderList (data) {
    return request({
      url: '/shop/order/order-list',
      method: 'post',
      data
    })
}
// 订单详情
export function orderInfo (data) {
    return request({
      url: '/shop/order/order-info',
      method: 'post',
      data
    })
}
// 接单
export function doOrder (data) {
    return request({
      url: '/shop/order/do-order',
      method: 'post',
      data
    })
}
// 退款
export function quitOrder (data) {
    return request({
      url: '/shop/order/quit-order',
      method: 'post',
      data
    })
}
// 标记发货
export function endOrder (data) {
    return request({
      url: '/shop/order/end-order',
      method: 'post',
      data
    })
}
// 账单管理
export function settlementList (data) {
    return request({
      url: '/shop/settlement/settlement-list',
      method: 'post',
      data
    })
}
// 代结算账单
export function settlementOrderList (data) {
    return request({
      url: '/shop/settlement/order-list',
      method: 'post',
      data
    })
}
// 代结算账单详情
export function settlementInfo (data) {
    return request({
      url: '/shop/settlement/settlement-info',
      method: 'post',
      data
    })
}
// 获取所有供货商
export function shopList (data) {
    return request({
      url: '/shop/index/shop-list',
      method: 'post',
      data
    })
}
// 配送清单-按商品分
export function orderGoodList (data) {
    return request({
      url: '/shop/order/order-good-list',
      method: 'post',
      data
    })
}
// 配送清单-按店铺分
export function orderShopList (data) {
    return request({
      url: '/shop/order/order-shop-list',
      method: 'post',
      data
    })
}
// 退款订单列表
export function refundOrderList (data) {
    return request({
      url: '/shop/order/refund-order-list',
      method: 'post',
      data
    })
}
// 退款订单详情
export function refundOrderInfo (data) {
    return request({
      url: '/shop/order/refund-order-info',
      method: 'post',
      data
    })
}
// 完成备货
export function stockUp (data) {
    return request({
      url: '/shop/order/stock-up',
      method: 'post',
      data
    })
}
// 订单总数统计
export function orderCount (data) {
    return request({
      url: '/shop/order/order-count',
      method: 'post',
      data
    })
}
// 首页及配置信息
export function homeIndex (data) {
    return request({
      url: '/index/index',
      method: 'post',
      data
    })
}
// 商品列表
export function goodList (data) {
    return request({
      url: '/shop/goods/good-list',
      method: 'post',
      data
    })
}
// 商品详情
export function goodInfo (data) {
    return request({
      url: '/shop/goods/good-info',
      method: 'post',
      data
    })
}
// 商品上架
export function upGoods (data) {
    return request({
      url: '/shop/goods/up-goods',
      method: 'post',
      data
    })
}
// 商品改价
export function changePrice (data) {
    return request({
      url: '/shop/goods/change-price',
      method: 'post',
      data
    })
}
// 确认账单
export function setEndOrder (data) {
    return request({
      url: '/shop/settlement/end-order',
      method: 'post',
      data
    })
}
// 修改订单商品数量
export function changeGoodNum (data) {
    return request({
      url: '/shop/order/change-good-num',
      method: 'post',
      data
    })
}